package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.PageData;
import com.woniu.entity.dto.CollectDTO;
import com.woniu.pojo.Collect;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaosong
 * @since 2023-04-01
 */
public interface ICollectService extends IService<Collect> {

    PageData searchPage(Integer currentPage, Integer pageSize, CollectDTO collectDTO);

    Boolean increase(Collect collect);

    Boolean decrease(Integer id);

    Boolean deletePart(List<Integer> ids);

    Boolean revise(Collect collect);

    Collect searchById(Integer id);

    PageData searchCollect(Integer currentPage, Integer pageSize, CollectDTO collectDTO);

    PageData searchHistory(Integer currentPage, Integer pageSize, CollectDTO collectDTO);
}
